﻿
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.Model.Entity.Sale
{
    [SugarTable("SM_SaleContent")]
    public class SaleContentEntity : BaseEntity
    {
        public SaleContentEntity()
        {
            Status = 0;
        }

        private int num;
        /// <summary>
        /// 单子序号
        /// </summary>
        public int Num
        {
            get { return num; }
            set { num = value; }
        }


        /// <summary>
        /// 状态,0:未接单, 1:已接单
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime pDate { get; set; }

        public int CompanySN { get; set; }

        public int ShopSN { get; set; }

        /// <summary>
        /// 单号
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustName { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string CustTel { get; set; }
         
        /// <summary>
        /// 客户地址
        /// </summary>
        public string CustAddress { get; set; }

        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string DeliveryName { get; set; }

        /// <summary>
        /// 收货人手机
        /// </summary>
        public string DeliveryTel { get; set; }

        /// <summary>
        /// 收货人地址
        /// </summary>
        public string DeliveryAddress { get; set; }
         
        /// <summary>
        /// 经度
        /// </summary>
        public float Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public float Latitude { get; set; }
         
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal Total { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal FavorTotal { get; set; }
         
        /// <summary>
        /// 支付金额
        /// </summary>
        public decimal Payment { get; set; }
         
        /// <summary>
        /// 销售日期
        /// </summary>
        public DateTime SaleDate { get; set; }
 
        /// <summary>
        /// 平台
        /// </summary>
        public string Platform { get; set; }
         
        /// <summary>
        /// 三方平台主键
        /// </summary>
        public string PlatformID { get; set; }
    }
}
